#encoding:utf-8


class Bag(object):
    """
    背包
    """
    def __init__(self,size):
        self.bag = []
        self.size = size
    
    def __len__(self):
        return self.size
    
    def __add__(self,items):
        return self.bag.append(items)



def init(self,size):
    self.bag = []
    self.size = size

def add(self, item):
    return self.bag.append(items)

def delBag(self, i):
    pass

SmallBag = type('SmallBag',(object,),{'__init__':init,'__iadd__':add,'delBag':delBag})
BigBag = type('BigBag',(object,),{'__init__':init,'__iadd__':add,'delBag':delBag})



